package com.monkeyboy.spring.myimport;

import com.monkeyboy.spring.model.User;
import com.monkeyboy.spring.service.TestService;
import com.monkeyboy.spring.service.UserService;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;

/**
 * @Author Gavin
 * @date 2021.06.15 15:57
 */
@ConditionalOnClass(TestService.class)
public class TestImport {
	public void say(){
		System.out.println("hello world!");
	}
	@Bean
	public User user(){
		return new User();
	}
}
